<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>操作系统：计算机的智慧引擎</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .card-hover {
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            border-color: #667eea;
        }
        
        .text-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .section-title {
            position: relative;
            padding-left: 20px;
        }
        
        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 30px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .feature-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 15px;
            color: white;
            font-size: 24px;
            margin-bottom: 20px;
        }
        
        .os-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            position: relative;
            overflow: hidden;
        }
        
        .os-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
            transform: rotate(45deg);
        }
        
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 40px 0;
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        
        .float-animation {
            animation: float 3s ease-in-out infinite;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto text-center">
            <h1 class="text-5xl md:text-6xl font-bold mb-6 float-animation">
                <i class="fas fa-microchip mr-4"></i>操作系统
            </h1>
            <p class="text-2xl md:text-3xl mb-8 font-light">计算机的智慧引擎</p>
            <p class="text-lg md:text-xl max-w-3xl mx-auto leading-relaxed opacity-90">
                在数字世界的深处，有一位看不见的指挥家，它协调着硬件与软件的交响乐，让复杂的计算变得简单而优雅。让我们一起揭开操作系统的神秘面纱。
            </p>
        </div>
    </section>

    <!-- Main Content -->
    <div class="max-w-6xl mx-auto px-6 py-12">
        
        <!-- Introduction Card -->
        <div class="os-card mb-12 card-hover">
            <div class="relative z-10">
                <h2 class="text-3xl font-bold mb-6 section-title">什么是操作系统？</h2>
                <p class="text-lg leading-relaxed text-gray-700">
                    操作系统是计算机系统中的关键软件，它像一位隐形的管理者，负责协调和控制计算机硬件和应用软件的交互。可以把操作系统比喻为计算机的大脑，它处理任务的分配、资源的管理、用户的交互等重要工作。
                </p>
            </div>
        </div>

        <!-- Core Functions -->
        <div class="mb-12">
            <h2 class="text-3xl font-bold mb-8 text-center text-gradient">核心功能</h2>
            <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="bg-white rounded-xl p-6 card-hover">
                    <div class="feature-icon">
                        <i class="fas fa-server"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">资源管理</h3>
                    <p class="text-gray-600">操作系统负责管理计算机的硬件资源，包括CPU、内存、硬盘、输入输出设备等，确保这些资源被合理分配和利用。</p>
                </div>
                
                <div class="bg-white rounded-xl p-6 card-hover">
                    <div class="feature-icon">
                        <i class="fas fa-tasks"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">进程管理</h3>
                    <p class="text-gray-600">管理运行在计算机上的各种程序，控制进程的创建、执行、暂停和终止，确保它们有序运行。</p>
                </div>
                
                <div class="bg-white rounded-xl p-6 card-hover">
                    <div class="feature-icon">
                        <i class="fas fa-memory"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">内存管理</h3>
                    <p class="text-gray-600">协调和监控计算机的内存使用，负责分配内存空间给运行的程序，并在需要时进行回收和释放。</p>
                </div>
                
                <div class="bg-white rounded-xl p-6 card-hover">
                    <div class="feature-icon">
                        <i class="fas fa-folder-tree"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">文件系统</h3>
                    <p class="text-gray-600">管理计算机上的文件和目录，提供对数据的组织和存储，使用户能够方便地访问和管理文件。</p>
                </div>
                
                <div class="bg-white rounded-xl p-6 card-hover">
                    <div class="feature-icon">
                        <i class="fas fa-desktop"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">用户接口</h3>
                    <p class="text-gray-600">提供用户与计算机之间的桥梁，使用户能够通过图形界面或命令行与计算机进行交互。</p>
                </div>
            </div>
        </div>

        <!-- System Architecture Visualization -->
        <div class="os-card mb-12">
            <h2 class="text-3xl font-bold mb-6 section-title">系统架构</h2>
            <div class="mermaid">
                graph TD
                    A[用户应用程序] --> B[系统调用接口]
                    B --> C[操作系统内核]
                    C --> D[进程管理]
                    C --> E[内存管理]
                    C --> F[文件系统]
                    C --> G[设备驱动]
                    D --> H[CPU]
                    E --> I[内存]
                    F --> J[存储设备]
                    G --> K[输入/输出设备]
                    
                    style A fill:#e0e7ff,stroke:#667eea,stroke-width:2px
                    style C fill:#667eea,stroke:#764ba2,stroke-width:3px,color:#fff
                    style H fill:#fce7f3,stroke:#ec4899,stroke-width:2px
                    style I fill:#fce7f3,stroke:#ec4899,stroke-width:2px
                    style J fill:#fce7f3,stroke:#ec4899,stroke-width:2px
                    style K fill:#fce7f3,stroke:#ec4899,stroke-width:2px
            </div>
        </div>

        <!-- Why We Need OS -->
        <div class="grid md:grid-cols-2 gap-8 mb-12">
            <div class="os-card">
                <h2 class="text-3xl font-bold mb-6 section-title">为什么需要操作系统？</h2>
                <div class="space-y-4">
                    <div class="flex items-start">
                        <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                        <div>
                            <h4 class="font-bold mb-1">资源管理</h4>
                            <p class="text-gray-600">有效协调计算机的硬件资源，使多个程序能够共享资源而不产生冲突。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                        <div>
                            <h4 class="font-bold mb-1">简化用户接口</h4>
                            <p class="text-gray-600">通过友好的用户接口，让用户轻松与计算机交流，无需了解硬件细节。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                        <div>
                            <h4 class="font-bold mb-1">提高效率</h4>
                            <p class="text-gray-600">通过各种优化策略，提高计算机运行效率，使任务更快速完成。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                        <div>
                            <h4 class="font-bold mb-1">确保系统稳定性</h4>
                            <p class="text-gray-600">监控和管理计算机运行状态，防止程序崩溃或硬件故障导致系统崩溃。</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- OS Types -->
            <div class="os-card">
                <h2 class="text-3xl font-bold mb-6 section-title">主流操作系统</h2>
                <div class="space-y-4">
                    <div class="bg-gradient-to-r from-blue-50 to-blue-100 rounded-lg p-4">
                        <div class="flex items-center mb-2">
                            <i class="fab fa-windows text-blue-600 text-2xl mr-3"></i>
                            <h4 class="font-bold text-lg">Windows</h4>
                        </div>
                        <p class="text-gray-700">用户友好，广泛应用于个人计算机。</p>
                    </div>
                    
                    <div class="bg-gradient-to-r from-gray-50 to-gray-100 rounded-lg p-4">
                        <div class="flex items-center mb-2">
                            <i class="fab fa-apple text-gray-800 text-2xl mr-3"></i>
                            <h4 class="font-bold text-lg">macOS</h4>
                        </div>
                        <p class="text-gray-700">设计精美，用于苹果公司的电脑。</p>
                    </div>
                    
                    <div class="bg-gradient-to-r from-orange-50 to-orange-100 rounded-lg p-4">
                        <div class="flex items-center mb-2">
                            <i class="fab fa-linux text-orange-600 text-2xl mr-3"></i>
                            <h4 class="font-bold text-lg">Linux</h4>
                        </div>
                        <p class="text-gray-700">开源、稳定，用于服务器和嵌入式系统。</p>
                    </div>
                    
                    <div class="bg-gradient-to-r from-purple-50 to-purple-100 rounded-lg p-4">
                        <div class="flex items-center mb-2">
                            <i class="fas fa-server text-purple-600 text-2xl mr-3"></i>
                            <h4 class="font-bold text-lg">Unix</h4>
                        </div>
                        <p class="text-gray-700">用于大型服务器和工作站，是Linux的前身。</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Closing Statement -->
        <div class="bg-gradient-to-r from-purple-600 to-indigo-600 rounded-2xl p-8 text-white text-center">
            <i class="fas fa-lightbulb text